<include file="Public:pageheader" />
<script>
function xuan()
		{
		  var a=new Array();
		  var i;
		  var c=0;
		  for(i=0;i<document.getElementsByName("quanxuan[]").length;i++)
		  {
		  if(document.getElementsByName("quanxuan[]")[i].checked)
		    {
		     a[c]=document.getElementsByName("quanxuan[]")[i].value;
		     c++;
		     /*alert(a);*/
		  }
		  }
			if(a.length==0)
			{
			  alert("请选择");
			}
			else
			{
				var ss=confirm("确定删除?");
				if(ss==true)
				{
				  location.href="__APP__/GeneralCustomer/all_delete/id/"+a;
				}
			}
		}
</script>

<table id="mytable" cellspacing="0" align="center">

<caption>Tag : {$Think.lang.list_stele_make}&nbsp;&nbsp;&nbsp;

</caption>
<form action="__URL__/search" method="post">
{%request_id}：<input type="text" name="request_id"/>
{%dead_name}：<input type="text" name="dead"/>
{%charge_person_name}：<input type="text" name="charge_person_id"/>
{%creater_name}：<input type="text" name="creater_name"/>
{%graveyardposition}：<input type="text" name="graveyard_id"/>
<input type="submit" value="搜索" class="button"/>
</form>
<input type="button" class="button" value="新增碑文制作" onclick="javascript:window.location.href='__URL__/add'"/>
<tr>
	<th scope="col">{$Think.lang.select}</th>
	<th scope="col">{$Think.lang.charge_person_name}</th>
	<th scope="col">{$Think.lang.graveyardposition}</th>
	<th scope="col">{$Think.lang.execute_status}</th>
	<th scope="col">{$Think.lang.execute_person_id}</th>
	<th scope="col">{$Think.lang.execute_time}</th>
	<th scope="col">{$Think.lang.operation}</th>
</tr>
<iterate name="list" id="v">
<tr>
<th><input type="checkbox" name="quanxuan[]" value="{$v.id}" id="lee"/></th>
<td>{$v.charge_person_id}</td>
<td>{$v.graveyard_position}</td>
<td>{$v.execute_status}</td>
<td>{$v.execute_person_id}</td>
<td>{$v.execute_time|date='Y-m-d',###}</td>

<td align="center">
<a href="__URL__/edit/id/{$v.id}" title="{$Think.lang.edit}"><img src="__PUBLIC__/images/pencil.png" alt="{$Think.lang.edit}" /></a>
<a href="__URL__/delete/id/{$v.id}" title="{$Think.lang.delete}" onclick="return confirm('你确定要删除吗？')"><img src="__PUBLIC__/images/cross.png" alt="{$Think.lang.delete}" /></a> 							
<a href="__URL__/view/id/{$v.id}" title="{$Think.lang.show}"><img src="__PUBLIC__/images/show.png" alt="{$Think.lang.show}" /></a>
</td>
</tr>
</eq>
</iterate>
</table>&nbsp;&nbsp;&nbsp;&nbsp;{$page}
<form>
<input type="button" value="全选" onclick="ck(true)" class="button"/><a href="javascript:xuan()">选择删除</a>
		
<input type="button" value="取消全选" onclick="ck(false)" class="button"/>
</form>
<include file="Public:footer" />